﻿using System;

namespace ActiveDirectoryUtilities.CommonLibrary
{
	/// <summary>
	/// For use with userAccountControl and ms-DS-User-* attributes
	/// http://msdn.microsoft.com/en-us/library/ms680832(VS.85).aspx
	/// </summary>
	[Flags]
	public enum Ads_User_Flags
	{
		SCRIPT = 0x00000001,
		ACCOUNTDISABLE = 0x00000002,
		HOMEDIR_REQUIRED = 0x00000008,
		LOCKOUT = 0x00000010,
		PASSWD_NOTREQD = 0x00000020,
		PASSWD_CANT_CHANGE = 0x00000040,
		ENCRYPTED_TEXT_PASSWORD_ALLOWED = 0x00000080,
		TEMP_DUPLICATE_ACCOUNT = 0x00000100,
		NORMAL_ACCOUNT = 0x00000200,
		INTERDOMAIN_TRUST_ACCOUNT = 0x00000800,
		WORKSTATION_TRUST_ACCOUNT = 0x00001000,
		SERVER_TRUST_ACCOUNT = 0x00002000,
		DONT_EXPIRE_PASSWD = 0x00010000,
		MNS_LOGON_ACCOUNT = 0x00020000,
		SMARTCARD_REQUIRED = 0x00040000,
		TRUSTED_FOR_DELEGATION = 0x00080000,
		NOT_DELEGATED = 0x00100000,
		USE_DES_KEY_ONLY = 0x00200000,
		DONT_REQUIRE_PREAUTH = 0x00400000,
		PASSWORD_EXPIRED = 0x00800000,
		TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION = 0x01000000,
		PARTIAL_SECRETS_ACCOUNT = 0x04000000
	};
}
